using Melody_Glider.MelodyContent;
using Microsoft.SPOT.IO;

namespace Melody_Glider
{
    public class SystemState
    {
        public MediaEventArgs Drive;

        public bool IsFileSaved;
        public bool NewBpm;
        public bool NewBaseOctave;
        public bool ReplaceMenu;
        public bool BaseOctaveMenu;
        public string ActiveFileName;
        public int SelectedNote;
        public Melody MelodyBuffer;
        public Note Clipboard;

        public void SetForNewFile()
        {
            ActiveFileName = "filename";
            MelodyBuffer = new Melody(120, 4);
            NewBpm = true;
            NewBaseOctave = true;
            IsFileSaved = true;
        }

        public void SetForLoadedFile()
        {
            NewBpm = false;
            NewBaseOctave = false;
            IsFileSaved = true;
        }
    }
}
